package com.jk.smartelderlycare.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
@Data
@ToString
@TableName(value = "sys_role")
@ExcelTarget(value = "角色信息")  //表头
public class SysRole implements Serializable {
    private static final long serialVersionUID = -8331484096487850290L;
    @TableId(value = "role_id",type = IdType.AUTO)

    @Excel(name = "编号")
    private Long roleId;
    @Excel(name = "角色名称")
    private String roleName;

    @Excel(name = "状态", replace = {"正常_0", "禁用_1"})
    private String status;

    @Excel(name = "创建时间", exportFormat = "yyyy-MM-dd HH:mm:ss",height = 20, width = 38,importFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    private String modifyUser;
    @Excel(name = "修改时间", exportFormat = "yyyy-MM-dd HH:mm:ss",height = 20, width = 38,importFormat = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDate;

    private String remark;


    @TableField(exist = false)
    private Long num;

    @TableField(exist = false)
    private String startDate;//开始时间
    @TableField(exist = false)
    private String endDate;//结束时间


}